<?php
namespace App\Models;

use App\Exceptions\ApiException;
use Illuminate\Support\Facades\DB;

class ManageWork extends CommonModel {
	protected $table = 'manage_work';
    public static function getStatusName($status,$manage_name=''){
        switch ($status){
            case 1:
                $status_name = $manage_name.'审批中';
                break;
            case 2:
                $status_name = '已完成';
                break;
            case 3:
                $status_name = '延缓处理';
                break;
            case 4:
                $status_name = $manage_name.'已拒绝';
                break;
            case 5:
                $status_name = $manage_name.'已转交';
                break;
            default:
                return null;
        }
        return $status_name;
    }
}